
<!DOCTYPE html>
<html class="settings-main_background" lang="zh">
<head>
    <include file='public@head'/>
</head>
<body class="message">
<include file='public@header'/>

<div class="clear"></div>
<div class="post-pic"><img src="__INDEX__/images/post_pic.png" alt=""></div>
<div class="wrapper">
    <div class="cont">
        <div class="main-box aboutadd">
            <div class="about-top">
                <!--<div class="son-nav">-->
                <!--<ul>-->
                <!--<li><a class='cur' href='/2281/about/'>医院简介</a></li>-->
                <!--<li><a href="/2281/about/wenhua/">医院文化</a></li>-->

                <!--</ul>-->
                <!--</div>-->
                <div class="breadcrumb">
                    当前位置：<a href='/'>主页</a> > <a href='/message'>在线留言</a> >
                </div>
            </div>
            <div class="con" id="maximg">
                <h3 class="title">在线留言</h3>
                <form id="form1" class="form">
                    <div class="input_group">
                        <span>您的姓名/公司名<b>*</b></span>
                        <input type="text" id="name" name="username">
                    </div>
                    <div class="input_group">
                        <span>联系电话<b>*</b></span>
                        <input type="text" id="tel" name="mobile">
                    </div>
                    <div class="input_group">
                        <span>留言内容</span>
                        <textarea  cols="30" rows="2" id="message" name="content"></textarea>
                    </div>

                    <button type="button" class="btn btn-primary"  id="btnSendForm1">提交</button>
                </form>

                <script type="text/javascript">
                    $(function () {

                        //提交表单
                        $("#btnSendForm1").click(function () {

                            var data = $("#form1").serialize();
                            $.post("/portal/message/add", data, function (res) {
                                if (res.code == 1) {
                                    alert("提交成功！");
                                    location.href = location.href.replace(/#/g,"");
                                }
                                else {
                                    alert("提交失败！" + (res.Message != "" ? ("\n" + res.str) : ""));
                                }
                            });
                        });
                    });

                </script>
            </div>
        </div>
    </div>
</div>

<include file='public@footer'/>
</body>
</html>